const label = '笑话'
const name = 'DkAppJoke'

export default {
  icon: 'tdesign:work',
  label,
  name,
  rule() {
    return {
      type: name,
      props: {
        iconSize: 24,
        buttonStyle: {
          width: '60%',
          height: '40px',
          backgroundColor: 'rgba(252, 25, 25, 1)',
          borderRadius: '80px',
          boxShadow: '2px 2px 3px 2px #E7E5E5FF'
        },
        cardStyle: {
          paddingLeft: '40px',
          paddingTop: '40px',
          paddingRight: '40px',
          paddingBottom: '40px',
          backgroundColor: 'rgba(255, 255, 255, 1)'
        }
      },
      showStyle: true,
      children: [],
      style: {},
      setting: {
        style: {}
      }
    }
  },
  props() {
    return [
      {
        type: 'input',
        title: '文件名',
        field: 'fileName',
        value: 'xiaohua.json',
        effect: { help: '设置文件名称，文件放在addons/gs_gold/data/目录下' }
      },
      {
        type: 'input',
        title: '按钮文字',
        field: 'buttonText',
        value: '下一个'
      },
      {
        type: 'input',
        title: '有广告文字',
        field: 'buttonAdText',
        value: '看广告解锁下一个'
      },
      { type: 'number', title: '第几个广告', field: 'freeCount', value: 2, effect: { help: '设置第几个后需要看广告，免广告填写0' } },
      {
        type: 'DkStyleInput',
        field: 'buttonStyle',
        title: '按钮样式',
        props: {
          isDrawer: true,
          drawerProps: {
            title: '按钮样式',
            size: '400px',
            zIndex: 100
          },
          hideComponents: ['DkStyleFontInput']
        },
        value: {
          width: '60%',
          height: '40px',
          backgroundColor: 'rgba(252, 25, 25, 1)',
          borderRadius: '80px',
          boxShadow: '2px 2px 3px 2px #E7E5E5FF'
        }
      },
      {
        type: 'DkStyleInput',
        field: 'cardStyle',
        title: '卡片样式',
        props: {
          isDrawer: true,
          drawerProps: {
            title: '卡片样式',
            size: '400px',
            zIndex: 100
          },
          hideComponents: ['DkStyleFontInput']
        },
        value: {}
      }
    ]
  }
}
